<?php
/**
 * Project
 * 项目
 *
 * @author ddj
 */
class Project {
    private $name;              //
    private $source;            // 来源
    private $outlay;            // 经费额度
    private $firstResponsible;  // 第一负责人
    private $secondResponsible; //
    private $thirdResponsible;  //
    private $participant;       // 主要参加人
    private $startTime;         // 开始时间
    private $endTime;           // 结束时间
    private $finishTime;        // 结题时间
    private $state;             // 状态
    private $auditingState;     // 审核状态
    
    function __construct($attributesArray=null) {
        $this->name = null;
        $this->source = null;
        $this->outlay = null;
        $this->firstResponsible = null;
        $this->secondResponsible = null;
        $this->thirdResponsible = null;
        $this->participant = null;
        $this->startTime = null;
        $this->endTime = null;
        $this->finishTime = null;
        $this->state = null;
        $this->auditingState = null;
        
        if($attributesArray!=null){
            foreach ($attributesArray as $key => $value) {
                $this->$key = $value;
            }
        }
    }

    
    function __get($propertyName) {
        if(isset($this->$propertyName)){
            return $this->$propertyName;
        }else{
            //
            return NULL;
        }
    }
    
    function __set($propertyName, $value) {
        $this->$propertyName = trim($value);
    }
    
}
